<!--
 * @Description:
 * @Author: xiao li
 * @Date: 2021-10-28 09:47:20
 * @LastEditTime: 2021-10-28 12:55:03
 * @LastEditors: xiao li
-->

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实时排行榜</title>
    <style>
        body{
            width: 416px;
            height: 160px;
            padding: 0;
            margin: 0;
        }
        .flex-warp {
            display: flex;
            flex-wrap: wrap;
        }

        .flex-center {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .ml-sm{
            margin-left: 5px;
        }
        .box{
            width: 414px;
            height: 158px;
            background: black;
            font-size: 1rem;
            color: red;
            border: 1px solid red;
            overflow: hidden;
        }
        table{
            border-bottom: 1px solid red;
        }
        table,
        .info{
            width: 100%;
            min-height: 40px;
        }
        table td,
        .info-item{
            width: 34%;
            text-align: center;
            font-weight:bold;
        }
        .info-item{
            font-size: 0.9rem;
            display:block;
            overflow:hidden;
            white-space:nowrap;
            text-overflow:ellipsis;
        }
        .info .flex-center{
            padding: 8px 5px;
            border-bottom: 1px dashed red;
        }
    </style>
</head>
<body>

<div class="box">
    <table>
        <tr>
            <td>车手1</td>
            <td>最快圈速</td>
            <td>刷圈日期</td>
        </tr>
    </table>
<!--    <marquee class="info"  height="123" direction="up" scrolldelay="1500" truespeed="0" scrollamount="123">-->

    <div  class="info" height="118">

        <?php foreach ($data as $key => $value){ ?>

        <div class="flex-center">
            <div class="info-item"><?php printf($value["user_name"] )?></div>
            <div class="info-item"><?php printf($value["best_time"] )?></div>
            <div class="info-item"><?php printf($key)?></div>
        </div>

        <?php } ?>


    </div>



<!--    </marquee>-->
</div>

</body>
</html>